package com.qriver.modules.provider;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class AdminController {
	
	@RequestMapping("/token/{token}")
	@ResponseBody
    public String authentication(@PathVariable(required = false) String token) {
		System.out.println("core - authentication");
		if(token != null && token.equals("abc")) {
			return "true";
		}else {
			return "false";
		}
    }
}
